package com.components;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/6/29.
 */
@Component
@Configurable
@EnableScheduling
public class ScheduledTask {

//    @Autowired
//    private IFillPlanService fillPlanService;
//
//    //每天0点0分1秒执行
//    @Scheduled(cron = "1 0 0  * * * ")
//    public void reportCurrentByCron() {
//        this.fillPlanService.addFillPlanTaskEveryDay();
//    }
//
//    测试  每分钟
//    @Scheduled(cron = "0 */1 *  * * * ")
//    public void test() {
//        System.out.println("--------------");
//        this.fillPlanService.addFillPlanTaskEveryDay();
//    }

}
